package com.alan.sso.share.bean;

import cn.hutool.crypto.symmetric.AES;
import lombok.Data;

/**
 * @Auther: Alan liu
 * @Date: 2018/12/20 17:26
 * @Description: SsoConfigData
 */
@Data
public class SsoConfigData {

    private String appName;
    private String appKey;
    private String loginUrl;
    private String logoutUrl;
    private String validateUrl;
    private PathPattern pathPattern;
    private AES aes;

    private static final SsoConfigData instance = new SsoConfigData();

    private SsoConfigData(){
        
    }

    public static SsoConfigData newInstance() {
        return instance;
    }


    public void addPathPattern(String[] exclusiveURLs) {
        this.pathPattern = new PathPattern(exclusiveURLs);
    }
}
